import { Project } from '../src/Project';
import { Scene } from '../src/Scene';
import { SolidColor } from '../src/actors/SolidColor';
import { ColorBar } from '../src/actors/ColorBar';
import { Rectangle } from '../src/actors/Rectangle';
import { LinearTween } from '../src/tweens/LinearTween';

const project = new Project({
	width: 1280,
	height: 720,
	fps: 60,
	outputDirectory: './out'
});

const scene0 = new Scene();
const scene1 = new Scene();
const scene2 = new Scene();

const card = new SolidColor('#eeeeee');
const bars = new ColorBar();
const rect = new Rectangle(20, 20, 20, 20, '#000000');

const tween = new LinearTween(12);

rect.addTween('x', tween);

scene0.addActor(card);
scene1.addActor(bars);
scene2.addActor(rect);

project.addScene({
	scene: scene0,
	length: 5
}).addScene({
	scene: scene1,
	length: 5
}).addScene({
	scene: scene2,
	length: 30
}).render();
